Skip to main content

{cart}

Cart Substitution provides data for the current cart in session.
{cart attr="one_of_the_following"}

Attributes

Attribute nameData returned
contains_virtual_product OR is_virtualtrue if the cart contains at least one virtual product, false otherwise
item_count OR count_itemThe number of items in the cart. A cart with 2 x product X and 3 x product Y have 5 items
total_price_with_discount OR total_priceTotal cart amount in the current currency, without taxes, including discount
total_price_without_discountTotal cart amount in the current currency, without taxes, excluding discount
total_taxed_price_with_discount OR total_taxed_priceTotal cart amount in the current currency with taxes, and including the discount
total_taxed_price_without_discountTotal price with discount without taxes
weightThe cart total weight, in kg